var obj = {
	data() {
		return {
			isLogined: false,
			goodstitle:"吃饭了吗"
		}
	},
	onShow() {
		console.log("js文件执行了")
		var token = uni.getStorageSync("token");
		if (token) {
			this.isLogined = true
		} else {
			uni.showModal({
				title: "登录提示",
				content: "暂未登录，是否立即登录",
				success(res) {
					if (res.confirm) { // 跳转到登录
						uni.navigateTo({
							url: '/pages/my/register/register',
						});
					} else { // 
						uni.showToast({
							title: "取消",
							icon: "none"
						})
					}
				}
			})
		}
	}
}

export default obj
